
#include <UnitsVisitorImpl.h>

using namespace std;

UnitsVisitorImpl::UnitsVisitorImpl( std::ostream& os, unsigned int ammountInBaseUnit ):os_m(os), remainingAmmount_m(ammountInBaseUnit)
{	
}

void UnitsVisitorImpl::visit(const Unit* const pUnit ) 
{
	pUnit->formatThisUnit( os_m, remainingAmmount_m );
}

